<%@ include file="/WEB-INF/jsp/include.jsp"%>
<html>
<head>
<script type="text/javascript" src="./jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="./jquery.validate.js"></script>
<link type="text/css" rel="stylesheet" media="all" href="./simple.css" />
<script type="text/javascript">
	$(document).ready(function() {
		$("#form1").validate({
			rules : {
				hq : "required",
				industry : "required",
				location : "required"
			}
		});
	});
</script>
</head>
<body>
	<h2>Update Company</h2>
	<form id="form1" name="updC" action="updCompanyD.htm" method="get">
		Company Name:
		<c:out value="${jsonMap.companyName}" />
		<br />
		<div class="form-row">
			<span class="label">Headquarters: </span><select name="hq">
				<c:forEach var="location" items="${jsonMap.locations}">
					<option value="${location}">${location}</option>
				</c:forEach>
			</select>
		</div>
		<div class="form-row">
			<span class="label">Industry: </span><select name="industry">
				<c:forEach var="indust" items="${jsonMap.industry}">
					<option value="${indust}">${indust}</option>
				</c:forEach>
			</select>
		</div>
		<div class="form-row">
			<span class="label">Location: </span><select name="location">
				<c:forEach var="location" items="${jsonMap.locations}">
					<option value="${location}">${location}</option>
				</c:forEach>
			</select>
		</div>
		<div class="form-row">
			<input class="submit" type="submit" Value="Submit">
			<div style="visibility: hidden">
				<input type="text" name="companyId" value="${param.companyId}" />
			</div>
	</form>
</body>
</html>